<!--
 * @Author: MarioGo
 * @Date: 2021-11-06 16:55:45
 * @LastEditTime: 2021-11-06 17:00:59
 * @LastEditors: MarioGo
 * @Description: 文件描述
 * @FilePath: /zheye/src/components/DropdownItem.vue
 * 可以输入预定的版权声明、个性签名、空行等
-->
<template>
  <li class="dropdown-option" :class="{ 'is-disabled': disabled }">
    <slot></slot>
  </li>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  name: 'DropdownItem',
  props: {
    disabled: {
      type: Boolean,
      default: false,
    },
  },
  setup() {
    return {};
  },
});
</script>

<style scoped>
.dropdown-option.is-disabled {
  color: #62757d;
  pointer-events: none;
  background-color: transparent;
}
</style>
